Extract complete tables

Related example macro: Demo-Extract-Table

To extract a complete table as comma separated file and save it directly to your hard disk you can use:

EXTRACT POS=3 ELEM=0 ATTR=<TABLE*
SAVEAS TYPE=EXTRACT

This script extracts the third (POS=3) table on a web page to a file.

If the table looks like:
Order#
Item
Price (US$)
331-445
Book
29.95
444-555
CD-ROM
15.00


...the file has the following content:

Order# , Item , Price (US$)
331-445 , Book , 29.95
444-555 , CD-ROM, 15.00


Note 1: By default a comma (",") is used as separator. This can be modified by changing the entry for "CSVcomma=," in the Internet Macros settings file (File name: "iim.ini")